package homework.api01.apitest01;

public class SubStringDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
                    //0123456789
        String sub = str.substring(4,8);//tedu
        System.out.println(sub);

        sub = str.substring(8);//.cn
        System.out.println(sub);
    }
}
